package model

import "gorm.io/gorm"

type Cart struct {
	gorm.Model
	UserId  int32 `gorm:"column:user_id;type:int(11);index;not null;comment:用户ID"`
	GoodsId int32 `gorm:"column:goods_id;type:int(11);index;not null;comment:商品ID"`
	Stock   int32 `gorm:"column:Stock;type:int(11);not null;comment:加入的商品数量"`
	Check   int32 `gorm:"column:check;type:tinyint(1);default:1;comment:选中状态：1选中，2未选中"`
}
